﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DataBaseGrid.aspx.cs" Inherits="ArtLand.OA.Project.SystemMgr.DataBaseGrid" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
        <ext:PageManager runat="server" ID="page1" AutoSizePanelID="Grid1" />
        <ext:Grid ID="Grid1" ShowBorder="false" ShowHeader="true"
            Title="信息列表" runat="server" DataKeyNames="ID" OnRowDataBound="Grid1_RowDataBound" EnableRowNumber="true" OnRowCommand="Grid1_RowCommand" AllowCellEditing="true" ClicksToEdit="2">
            <Toolbars>
                <ext:Toolbar ID="Toolbar1" runat="server">
                    <Items>
                        <ext:Button ID="btnNew" Text="添加信息" Icon="Add" EnablePostBack="false" runat="server">
                        </ext:Button>
                        <ext:ToolbarSeparator></ext:ToolbarSeparator>
                        <ext:Button ID="Button1" runat="server" Text="保存" Icon="TableSave" OnClick="Button2_Click"></ext:Button>
                    </Items>
                </ext:Toolbar>
            </Toolbars>
            <Columns>
                <ext:RenderField Width="100px" ColumnID="BaseValue" DataField="BaseValue" FieldType="String"
                    HeaderText="代码（值）">
                    <Editor>
                        <ext:TextBox ID="txt_Value" Required="true" runat="server">
                        </ext:TextBox>
                    </Editor>
                </ext:RenderField>

                <ext:RenderField Width="100px" ColumnID="BaseName" DataField="BaseName" FieldType="String"
                    HeaderText="标题">
                    <Editor>
                        <ext:TextBox ID="txt_Name" Required="true" runat="server">
                        </ext:TextBox>
                    </Editor>
                </ext:RenderField>
                <ext:RenderField Width="100px" ColumnID="OrderID" DataField="OrderID" FieldType="Int"
                    HeaderText="排序">
                    <Editor>
                        <ext:NumberBox runat="server" ID="txt_TOrderID"></ext:NumberBox>
                    </Editor>
                </ext:RenderField>
                <ext:RenderField Width="200px" ColumnID="ReMark" DataField="ReMark" FieldType="String"
                    HeaderText="备注">
                    <Editor>
                        <ext:TextArea runat="server" ID="txt_ReMark"></ext:TextArea>
                    </Editor>
                </ext:RenderField>
                <ext:LinkButtonField ConfirmText="您确定要删除该条记录吗？" ConfirmTarget="Top" ColumnID="ID"
                    Width="40px" CommandName="Del" Icon="Delete" TextAlign="Center" />
            </Columns>
        </ext:Grid>
    </form>
    <script src="../js/extgridbug.js"></script>
</body>
</html>
